
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'image-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>true,
	'htmlOptions' => array('enctype'=>'multipart/form-data'),
));
?>

	<p class="help-block">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

		<?php echo $form->textFieldRow($model,'username',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->passwordFieldRow($model,'password',array('size'=>60,'maxlength'=>128)); ?>

		<?php echo $form->textFieldRow($model,'email',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->dropDownListRow($model,'superuser',User::itemAlias('AdminStatus')); ?>

		<?php echo $form->dropDownListRow($model,'status',User::itemAlias('UserStatus')); ?>
	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? UserModule::t('Create') : UserModule::t('Save'),
		)); ?>
	</div>

<?php $this->endWidget(); ?>

